/*
 * Created on May 23, 2004
 *
 * Vectrics Inc.  GNU Public License.
 */
package org.vectrics.recruiter.struts.admin;

import javax.servlet.jsp.JspException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.vectrics.recruiter.struts.JobSearchForm;
import org.vectrics.struts.VectricsActionData;
import org.vectrics.struts.VectricsStrutsAction;

/**
 * @author mmoore
 */
public class ShowJobSearchAction extends VectricsStrutsAction {
	private transient final Log log = LogFactory.getLog(this.getClass());
	
	/**
	 * 
	 */
	public ShowJobSearchAction() {
		super();
	}

	protected String doExecute(VectricsActionData actionData)	throws JspException {
		log.debug("execute() - called");
		JobSearchForm searchForm = (JobSearchForm)actionData.getForm();
		
		if (searchForm == null) {
			searchForm = new JobSearchForm();
		}
		searchForm.setPostedStartTime("0");
		searchForm.setCreatedStartTime("0");
		actionData.setRequestForm(searchForm);
		
		return ("success");
	}
	
}
